<template>
  <div class="read-wrapper">
    <iframe class="book-iframe" :src="book"></iframe>
  </div>
</template>
<script>
export default {
  name: "Book",
  data() {
    return {
      book: undefined,
    };
  },
  mounted() {
    this.book = this.$route.query.link;
  },
  methods: {},
};
</script>
<style lang="scss" >
.book-iframe {
  min-width: 100vw;
  min-height: 95vh;
}
.go-back {
  position: fixed;
  left: 30px;
  top: 30px;
  background-color: $zh;
  padding: 8px 30px;
  border-radius: 30px;
  color: #fff;
  cursor: pointer;
  &:hover {
    opacity: 0.8;
  }
}
#reader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -47%) scale(0.65);
  .calibre1 {
    margin: 0 !important;
  }
}
#prev {
  position: fixed;
  left: 30px;
  width: 50px;
  height: 50px;
  line-height: 44px;
  top: 50%;
  font-size: 50px;
  background-color: rgba(245, 245, 245, 0.521);
  border-radius: 50%;
  text-align: center;
}
#next {
  position: fixed;
  right: 30px;
  width: 50px;
  height: 50px;
  line-height: 44px;
  top: 50%;
  font-size: 50px;
  background-color: #f5f5f5;
  border-radius: 50%;
  text-align: center;
}
</style>
